$(function(){
	listDayData();
	
});
var dataHand = new AjaxHandler();
var psid = param.psid;
var date = param.date;
$("h1").html(date);
/**
 * 月报，年报数据填充
 * 
 */
function listDayData(){
	$.proAjax({
		url:"/mobile/daydate",
		data:{date:date,psid:psid},
		success:function(data){
			for(var key in data){
				if(key!='maxnbqtime' && key!='maxbwtime' && key!='psname'){
					$("#"+key).html(data[key]==null?"-":data[key].toFixed(2));
					if(key == 'trees'){
						$("#"+key).html(data[key]==null?"-":data[key].toFixed(0));
					}
				}else if(key!='psname'){
					$("#"+key).html(data[key]==null?"-":new Date(data[key]).format("yyyy-MM-dd hh:mm:ss"));
				}
			}
		}
	});
}
